import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
const resolve = (dir: string) => path.join(__dirname, dir)

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
	css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "@/assets/scss/var.scss";`,
      },
    },
  },
  resolve: {
		alias: {
			'@': resolve('src'),
			// comps: resolve('src/components'),
			// apis: resolve('src/apis'),
			// views: resolve('src/views'),
			// utils: resolve('src/utils'),
			// routes: resolve('src/routes'),
			// styles: resolve('src/styles')
		}
  }
})
